home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / emulator / uae-0.000 / uae-0 / uae-0.6.0 / Makefile.Be < prev    next >
Makefile  |  1996-06-14  |  5KB  |  198 lines

  1. # Makefile for UAE (Un*x Amiga Emulator)
  2. #
  3. # Copyright 1995,1996 Bernd Schmidt
  4. # Copyright 1996 Ed Hanway
  5.  
  6. .SUFFIXES: .o .c .h .m
  7.  
  8. INCLUDES=-Iinclude
  9.  
  10. OBJS = main.o newcpu.o memory.o debug.o custom.o cia.o disk.o $(GFXOBJS) \
  11.        autoconf.o os.o ersatz.o filesys.o hardfile.o keybuf.o expansion.o \
  12.        readcpu.o cpudefs.o gfxutil.o gfxlib.o blitfunc.o blittable.o $(ASSEMBLYOBJS) \
  13.        cpu0.o cpu1.o cpu2.o cpu3.o cpu4.o cpu5.o cpu6.o cpu7.o \
  14.        cpu8.o cpu9.o cpuA.o cpuB.o cpuC.o cpuD.o cpuE.o cpuF.o cpustbl.o
  15.  
  16. all: sysconfig.h bebox
  17.  
  18. sysconfig.h: sysconfig.h.Be
  19.     cp sysconfig.h.Be sysconfig.h
  20.  
  21. bebox:
  22.     $(MAKE) -fMakefile.Be \
  23.         CC='mwcc' \
  24.         GFXOBJS='bebox.o nogui.o' \
  25.         CFLAGS='-O7 -DPPC603=1 -D__unix -D__bebox__' \
  26.         LDFLAGS='' \
  27.         INCPATH='-I$(BEINCLUDES)' \
  28.         progs
  29.  
  30. progs: uae readdisk
  31.  
  32. install:
  33.  
  34. readdisk: readdisk.o
  35.     $(CC) readdisk.o -o readdisk $(LDFLAGS) $(DEBUGFLAGS)
  36.  
  37. uae: $(OBJS)
  38.     $(CC) $(OBJS) -o uae $(GFXLDFLAGS) $(AFLDFLAGS) $(LDFLAGS) $(DEBUGFLAGS)
  39.  
  40. clean:
  41.     -rm -f *.o uae readdisk
  42.     -rm -f gencpu genblitter build68k cpudefs.c
  43.     -rm -f cpu?.c blit.h
  44.     -rm -f cputbl.h cpustbl.c
  45.     -rm -f blitfunc.c blitfunc.h blittable.c
  46.  
  47. halfclean:
  48.     -rm -f $(OBJS) $(GFXOBJS)
  49.  
  50. blit.h: genblitter
  51.     ./genblitter i >blit.h
  52. blitfunc.c: genblitter blitfunc.h
  53.     ./genblitter f >blitfunc.c
  54. blitfunc.h: genblitter
  55.     ./genblitter h >blitfunc.h
  56. blittable.c: genblitter blitfunc.h
  57.     ./genblitter t >blittable.c
  58.  
  59. genblitter: genblitter.o
  60.     $(CC) $(LDFLAGS) -o $@ $?
  61. build68k: build68k.o
  62.     $(CC) $(LDFLAGS) -o $@ $?
  63. gencpu: gencpu.o readcpu.o cpudefs.o
  64.     $(CC) $(LDFLAGS) -o $@ gencpu.o readcpu.o cpudefs.o
  65.  
  66. custom.o: blit.h
  67.  
  68. cpudefs.c: build68k table68k
  69.     ./build68k >cpudefs.c
  70. cpustbl.c: gencpu
  71.     ./gencpu s >cpustbl.c
  72. cputbl.c: gencpu
  73.     ./gencpu t >cputbl.c
  74. cputbl.h: gencpu
  75.     ./gencpu h >cputbl.h
  76.  
  77. cpu0.c: gencpu
  78.     ./gencpu f 0 >cpu0.c
  79. cpu1.c: gencpu
  80.     ./gencpu f 1 >cpu1.c
  81. cpu2.c: gencpu
  82.     ./gencpu f 2 >cpu2.c
  83. cpu3.c: gencpu
  84.     ./gencpu f 3 >cpu3.c
  85. cpu4.c: gencpu
  86.     ./gencpu f 4 >cpu4.c
  87. cpu5.c: gencpu
  88.     ./gencpu f 5 >cpu5.c
  89. cpu6.c: gencpu
  90.     ./gencpu f 6 >cpu6.c
  91. cpu7.c: gencpu
  92.     ./gencpu f 7 >cpu7.c
  93. cpu8.c: gencpu
  94.     ./gencpu f 8 >cpu8.c
  95. cpu9.c: gencpu
  96.     ./gencpu f 9 >cpu9.c
  97. cpuA.c: gencpu
  98.     ./gencpu f 10 >cpuA.c
  99. cpuB.c: gencpu
  100.     ./gencpu f 11 >cpuB.c
  101. cpuC.c: gencpu
  102.     ./gencpu f 12 >cpuC.c
  103. cpuD.c: gencpu
  104.     ./gencpu f 13 >cpuD.c
  105. cpuE.c: gencpu
  106.     ./gencpu f 14 >cpuE.c
  107. cpuF.c: gencpu
  108.     ./gencpu f 15 >cpuF.c
  109.  
  110. cpu0.o: cpu0.c
  111.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  112. cpu1.o: cpu1.c
  113.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  114. cpu2.o: cpu2.c
  115.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  116. cpu3.o: cpu3.c
  117.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  118. cpu4.o: cpu4.c
  119.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  120. cpu5.o: cpu5.c
  121.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  122. cpu6.o: cpu6.c
  123.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  124. cpu7.o: cpu7.c
  125.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  126. cpu8.o: cpu8.c
  127.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  128. cpu9.o: cpu9.c
  129.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  130. cpuA.o: cpuA.c
  131.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  132. cpuB.o: cpuB.c
  133.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  134. cpuC.o: cpuC.c
  135.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  136. cpuD.o: cpuD.c
  137.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  138. cpuE.o: cpuE.c
  139.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  140. cpuF.o: cpuF.c
  141.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $*.c
  142.  
  143. bebox.o: bebox.cpp
  144.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) bebox.cpp
  145. X86.o: X86.S
  146.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $(ASSEMBLYCFLAGS) X86.S
  147.  
  148. .m.o:
  149.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $*.m
  150. .c.o:
  151.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $(ASSEMBLYCFLAGS) $*.c
  152. .c.s:
  153.     $(CC) $(INCLUDES) -S $(INCDIRS) $(CFLAGS) $*.c
  154. .S.o:
  155.     $(CC) $(INCLUDES) -c $(INCDIRS) $(CFLAGS) $(DEBUGFLAGS) $(ASSEMBLYCFLAGS) $*.S
  156.  
  157. # Saves recompiling...
  158. touch:
  159.     touch *.o; touch build68k; touch cpudefs.c; touch cpudefs.o; touch gencpu; touch genblitter; touch cpu*.c; touch cpu*.h; touch cpu*.o
  160.  
  161. # Some more dependencies...
  162. cpu0.o: cputbl.h
  163. cpu1.o: cputbl.h
  164. cpu2.o: cputbl.h
  165. cpu3.o: cputbl.h
  166. cpu4.o: cputbl.h
  167. cpu5.o: cputbl.h
  168. cpu6.o: cputbl.h
  169. cpu7.o: cputbl.h
  170. cpu8.o: cputbl.h
  171. cpu9.o: cputbl.h
  172. cpuA.o: cputbl.h
  173. cpuB.o: cputbl.h
  174. cpuC.o: cputbl.h
  175. cpuD.o: cputbl.h
  176. cpuE.o: cputbl.h
  177. cpuF.o: cputbl.h
  178. cpustbl.o: cputbl.h
  179. cputbl.o: cputbl.h
  180.  
  181. build68k.o: include/readcpu.h
  182. readcpu.o: include/readcpu.h
  183.  
  184. main.o: config.h
  185. cia.o: config.h
  186. custom.o: config.h
  187. newcpu.o: config.h
  188. autoconf.o: config.h
  189. expansion.o: config.h
  190. xwin.o: config.h
  191. svga.o: config.h
  192. bebox.o: config.h
  193. os.o: config.h
  194. memory.o: config.h
  195. debug.o: config.h
  196. ersatz.o: config.h
  197. disk.o: config.h
  198.